<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Episode_character_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-episode_character_id" data-rule="required" data-source="episode/character/index" class="form-control selectpage" name="row[episode_character_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Try_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-try_file" class="form-control" size="50" name="row[try_file]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-try_file" class="btn btn-danger faupload" data-input-id="c-try_file" data-multiple="true" data-preview-id="p-try_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-try_file" class="btn btn-primary fachoose" data-input-id="c-try_file" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-try_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-try_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">试看媒资文件ID:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-try_media_id" class="form-control" name="row[try_media_id]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Formal_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-formal_file" class="form-control" size="50" name="row[formal_file]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-formal_file" class="btn btn-danger faupload" data-input-id="c-formal_file" data-multiple="true" data-preview-id="p-formal_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-formal_file" class="btn btn-primary fachoose" data-input-id="c-formal_file" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-formal_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-formal_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">媒资文件ID:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-media_id" class="form-control" name="row[media_id]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Like_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-like_num" class="form-control" name="row[like_num]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark_num" class="form-control" name="row[remark_num]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lang_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-lang_type" class="form-control selectpicker" name="row[lang_type]">
                {foreach name="langTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
